package com.smartpro.mis.core.exception;

/**
 * Supermis异常枚举
 *
 * @author fengshuonan
 * @Date 2017/12/28 下午10:33
 */
public enum SupermisExceptionEnum implements ServiceExceptionEnum{

	/**
	 * 其他
	 */
	WRITE_ERROR(500,"渲染界面错误",null),

	/**
	 * 文件上传
	 */
	FILE_READING_ERROR(400,"FILE_READING_ERROR!",null),
	FILE_NOT_FOUND(400,"FILE_NOT_FOUND!",null),

	/**
	 * 错误的请求
	 */
	REQUEST_NULL(400, "请求有错误",null),
	SERVER_ERROR(500, "服务器异常",null);

	public void setData(String data) {
		this.data = data;
	}

	SupermisExceptionEnum(int code, String message, String data) {
		this.code = code;
		this.message = message;
		this.data = data;
	}

	private Integer code;

	private String message;
	private String data;

	@Override
	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	@Override
	public String getMessage() {
		return message;
	}

	@Override
	public String getData() {
		return data;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
